<?php 
include_once(''.P.'/public/header.html');
?>

<script type="text/javascript" src="res/bootstrapplugin/jquery-bootstable.js"></script>
<script type="text/javascript" src="res/menu/jquery-rockmenu.js"></script>
<link rel="stylesheet" type="text/css" href="res/menu/jquery-rockmenu.css">


<script>

function initbody(){
	
	table = $('#viewshow').bootstable({
		url:'index.php?d=plat&m=system&a=logdata',method:'get',fanye:true,checked:true,
		tablename:'10',cellurl:'w',
		columns:[{
			text:'cid',dataIndex:'cid',sortable:true
		},{
			text:'类型',dataIndex:'stype',sortable:true
		},{
			text:'备注',dataIndex:'remark',align:'left'
		},{
			text:'添加时间',dataIndex:'adddt',sortable:true
		},{
			text:'操作人',dataIndex:'optname'
		},{
			text:'id',dataIndex:'id',sortable:true
		},{
			text:'级别',dataIndex:'level',sortable:true
		},{
			text:'',dataIndex:'opts',renderer:function(s,d){
				return '<a class="zhu" href="javascript:;" onclick="deleterecord('+d.id+',10,false)">删</a>';
			}
		}]
		
		
	});
}
function delpipling(){
	var sid = table.getchecked();
	if(!sid){js.msg('msg','没有选中记录');return;}
	js.confirm('确定要删除吗？',function(jg){
		if(jg=='yes')delpiplings(sid);
	});
}
function delpiplings(sid){
	js.loading('删除中...');
	js.ajax({
		url:'index.php?d=plat&m=system&a=dellog',
		data:{sid:sid},type:'post',
		success:function(){
			table.reload();
			js.msgok('删除成功');
		}
	})
}
</script>
</head>

<body>

<?php 
include_once(''.P.'/public/top_plat.html');
?>

<div align="center">

<div style="width:<?=$maxwidth?>;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="?d=plat" class="zhu"><?=lang('plat.home')?></a> &gt;
		<a href="" class="zhu"><?=lang('plat.logtitle')?></a>
	</div>
	<div class="mainbody">
		<div style="padding:10px">
			<div style="padding:5px 0px">
			<a class="webbtn webbtn-red" onclick="delpipling()" href="javascript:;">选中的删除</a>
			
			
			
			</div>
			
			<div class="blank10"></div>
			<div id="viewshow"></div>
			
		</div>
		<div class="blank10"></div>
	</div>
</div>



<?php 
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>